<div class="actions">
    <?php
    echo CHtml::link('Thêm danh mục mới', array('category/create'), array('class' => 'btn btn-small btn-success'));
    ?>
</div>

<?php
$this->renderPartial('_searchForm', array('model' => new SearchForm()));

$this->widget('bootstrap.widgets.TbGridView', array(
    'dataProvider' => $dataProvider,
    'type' => 'striped bordered condensed',
    'columns' => array(
        array('name' => 'category_id', 'value' => '$data->category_id', 'type' => 'number'),
        array('name' => 'title', 'value' => '$data->title'),
        array('name' => 'icon', 'value' => '!empty($data->icon)?CHtml::image($data->getImageLink(),"icon alt",array("width"=>"16","height"=>"16")):"--"', 'type'=>'html'),
        array(// display a column with "view", "update" and "delete" buttons
            'class' => 'CButtonColumn',
            'template' => '{update}{delete}',
        ),
    ),
));